package com.appspot.zarm.controller.user;

import com.appspot.zarm.controller.user.impl.UserImpl;

public class UserFactory {

	public User newUser(UserType userType, Object... params){
		if (userType == UserType.SESSION){
			User user = new UserImpl();
			String id = (String) params[0];
			user.setId(id);
			return user;
		}
		throw new RuntimeException("wrong userType '" + userType + "'");
	}
}
